home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Especial Multimedia
/
Especial Multimedia.iso
/
Multimed
/
Prg
/
STR2BMP.ZIP
/
README.DOC
< prev
next >
Wrap
Text File
|
1997-09-14
|
3KB
|
52 lines
README FILE
-----------
MODIFICATIONS FOR STR2BMP.DLL v 1.1 (09-20-93)
----------------------------------------------
The following changes have been made to this file:
1. Changes were made to work with VB 3.0. Mostly this required changes
in the Demo VB program. When my DLL returns a LONG (as in size of
bitmap), the variable in VB must be long too. An integer causes call
kinds of weird errors.
2. Added runtime error messages for VB. When "making" the DLL, you will
need to include VBAPI.LIB which is found in the \VB\CDK directory.
Also note that with the Borland C++ 3.1 compiler, you need to turn
of case-sensitive linking in the link settings for VBAPI.LIB to link
properly.
3. Allow larger bitmaps. Up to 65000 bytes (the limit of VB strings).
4. Easier syntax for using string functions. For example, you can now
do this:
A$=StringToBitmap( Picture1.hdc, Picture1.Image).
There is no need to set the size of A$ ahead of time, etc.
STR2BMP.DLL v 1.0 (6-13-93)
---------------------------
STR2BMP.DLL contains a DLL called STR2BMP.DLL for converting VB bitmaps
into VB strings and vice versa. Also included are functions for inverting,
ANDing, ORing, and comparing bitmaps that have been converted to strings.
The source code for STR2BMP.DLL is included and may be modified as needed.
I. Instructions for demo.
A. Install all the files from STR2BMP.ZIP into a directory called C:\STR2BMP.
B. From VB/WIN, load the C:\STR2BMP\TEST.MAK program and execute it.
C. The code demonstrates converting bitmaps to strings, performing operations
on the strings, and converting the strings back into bitmaps.
II. Technical information.
A. The source code included was compiled using Borland C++ 3.1.
B. The maximum size bitmap that can be converted into a string using this DLL
is 32000 pixels.
C. To AND/OR two bitmaps, the bitmaps must be the same size.
D. Always remember to create a string large enough to hold the entire bitmap
before calling DLL functions that expect strings containing bitmaps. Otherwise
you may get a GPF. See sample code in TEST.FRM. The current DLL does
not check the size of the string before trying to fill it!!! An error will
be caused if you try to stuff too much bitmap into too small a string!!!
III. Questions or suggestions.
Please contact Jorge Monasterio at Compuserve 72147,2674 if you have
any questions or suggestions about this DLL.